package day03.homework;

import java.util.Scanner;

//2. 声明一个整型变量year并存储年份，判断其是平年还是闰年，若是闰年则输出"某某某年是闰年"，否则输出"某某某年是平年"。
public class Answer2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int year=sc.nextInt();
        Boolean flag=IsTheYear(year);
        if (flag){
            System.out.println(year+"是闰年");
        }else {
            System.out.println(year+"是平年");
        }
    }

    private static Boolean IsTheYear(int year) {
        if (year%4==0&&year%100!=0){
            return true;
        }else if (year%400==0){
            return true;
        }else{
            return false;
        }
    }
}
